﻿namespace Digitalmes.Common;

/// <summary>
/// 应用系统常量
/// </summary>
public sealed class AppConsts
{
    /// <summary>
    /// 站点编号
    /// </summary>
    public const string NOWSITE = "NOWSITE";

    /// <summary>
    /// 管理菜单
    /// </summary>
    public const string ADMINMENU = "ADMINMENU";

    /// <summary>
    /// 广告位
    /// </summary>
    public const string WEBCMSADV = "WEBCMSADV";

    /// <summary>
    /// 网站信息 
    /// </summary>
    public const string WEBCMSSITE = "WEBCMSSITE";

    /// <summary>
    /// Redis连接对象
    /// </summary>
    public const string REDISLOCALHOST = "Cache:Redis";

    /// <summary>
    /// Des加解密秘钥
    /// </summary>
    public const string DESKEY = "Security:DesKey";

    /// <summary>
    /// 邮箱信息
    /// </summary>
    public const string EMAILCONFIG = "Email:Config";

    /// <summary>
    /// 保存验证码标识
    /// </summary>
    public const string CAPTCHACODE = "CAPTCHACODE";

    /// <summary>
    /// Jwt黑名单
    /// </summary>
    public const string JWTBLACKLIST = "JWTBLACKLIST";

    /// <summary>
    /// 系统安全设置
    /// </summary>
    public const string SYSTEMSAFETY = "SYSTEMSAFETY";

    /// <summary>
    /// 在线用户
    /// </summary>
    public const string ONLINEUSERS = "ONLINEUSERS";

    /// <summary>
    /// Redis 存储授权API
    /// </summary>
    public const string AUTHORIZZATIONAPI = "AUTHORIZZATIONAPI";

    /// <summary>
    /// 读取配置文件，超级角色的编号
    /// </summary>
    public const string SUPERROLEID = "Oauth:SuperRole";

    /// <summary>
    /// 条码规则占位符，默认为 '$'。
    /// </summary>
    public const char BarcodeRulePlaceholder = '$';
}
